<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <table>
        <tr th:each="user , iterstat : ${userList}">
            <td th:text="${user.name}"></td>
            <td th:text="${user.age}"></td>
            <td th:text="${user.id}"></td>

            <td th:text="${iterstat.index}"></td>
            <td th:text="${iterstat.size}"></td>
            <td th:text="${iterstat.first}"></td>
            <td th:text="${iterstat.last}"></td>
        </tr>
    </table>
</body>
</html>